package com.jy.api.dao;

import com.jy.api.domain.Product;
import com.jy.api.domain.Region;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface RegionDao extends JpaRepository<Region, Integer>, JpaSpecificationExecutor<Region> {
    List<Region> findByStoreIdOrderByQueueDesc(String storeId);
}
